package cn.jlearn.proxy.web.service;

import cn.jlearn.proxy.web.model.Tunnel;
import cn.jlearn.proxy.web.pojo.R;

import java.math.BigInteger;
import java.util.List;

/**
 * @author qianyingchao
 * @version 1.0
 * @date 2021/7/15 12:07 下午
 */
public interface TunnelService {

    Tunnel getTunnelById(BigInteger id);

    Tunnel getTunnelByToken(String token);

    List<Tunnel> getTunnelList(String uid);

    R<Tunnel> addTunnel(String uid, String tunnelName, String localHost, Integer localPort);

    R<?> updateTunnel(BigInteger id, String uid, String tunnelName, String localHost, Integer localPort);

    R<?> changeToken(BigInteger id, String uid);

    R<?> online(String token, String online);

}
